﻿<Window x:Class="TFSUtils.View.BuildAnalysis"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
      DataContext="{Binding BuildAnalysis, Source={StaticResource Locator}}"
	  Title="BuildAnalysis">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        
        <TextBlock Grid.Row="0" Grid.Column="0" Text="Project"/>
        <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding BuildAnalysis.Project}"/>

        <TextBlock Grid.Row="1" Grid.Column="0" Text="Build Name"/>
        <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding BuildAnalysis.BuildName}"/>

        <TextBlock Grid.Row="2" Grid.Column="0" Text="Source Branch"/>
        <TextBox Grid.Row="2" Grid.Column="1" Text="{Binding BuildAnalysis.SourceBranch}"/>

        <TextBlock Grid.Row="3" Grid.Column="0" Text="Destination Branch"/>
        <TextBox Grid.Row="3" Grid.Column="1" Text="{Binding BuildAnalysis.TargetBranch}"/>
        
        <Button Content="Generate Results" Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Margin="10"
                Command="{Binding GenerateResultsCommand}"/>
        
        <ListView Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" ItemsSource="{Binding Results}"/>
    </Grid>
</Window>
